DataCollection | ComponentOne
C1.DataCollection Assembly / C1.DataCollection Namespace / IDataCollectionEx Class / SortAsync Method / SortAsync<T>(IDataCollection<T>,String,SortDirection) Method
The data collection.
The path of the data item to which the sort description will be applied.
The direction of the sort operation.

In This Topic
    SortAsync<T>(IDataCollection<T>,String,SortDirection) Method
    In This Topic
    Sorts the data collection according to the specified sort parameters.
    Syntax
    'Declaration
     
    Public Overloads Shared Function SortAsync(Of T As Class)( _
       ByVal dataCollection As IDataCollection(Of T), _
       ByVal sortPath As String, _
       Optional ByVal sortDirection As SortDirection _
    ) As Task
    public static Task SortAsync<T>( 
       IDataCollection<T> dataCollection,
       string sortPath,
       SortDirection sortDirection
    )
    where T: class

    Parameters

    dataCollection
    The data collection.
    sortPath
    The path of the data item to which the sort description will be applied.
    sortDirection
    The direction of the sort operation.

    Type Parameters

    T
    See Also